package com.fankui.servicemsm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName ConstantPropertiesUtils
 * Description TODO
 * Date 2023/11/23 18:27
 *
 * @Author 范奎
 * @Since JDK 11
 */
@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${aliyun.msm.file.keyid}")
    private String keyId;

    @Value("${aliyun.msm.file.keysecret}")
    private String keySecret;

    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;

    @Override
    public void afterPropertiesSet() {
        ACCESS_KEY_ID = keyId;
        ACCESS_KEY_SECRET = keySecret;
    }
}
